﻿<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
                    <h1 class="page-header">装机配置管理</h1>
                    <h6><button class="btn btn-success btn-xs" data-toggle="modal" data-target="#addconfig"><span class="glyphicon glyphicon-plus-sign"></span> 添加配置</button></h6>
                    <div class="modal fade" id="addconfig" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                                    <h4 class="modal-title" id="myModalLabel"><span class="glyphicon glyphicon-plus-sign"></span> 添加配置</h4>
                                </div>
                                <div class="modal-body">
                                    <form  role="form" >
                        <table class="table table-bordered text-center" >
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">商品名称</label>
                        </td>
                        <td>
                        <label for="exampleInputEmail1">型号</label>
                        </td>
                        <td>
                        <label for="exampleInputEmail1">价格</label>
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">主板</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="型号" id="main_board">
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="价格" id="p_main_board">
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">CPU</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="型号" id="cpu">
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="价格" id="p_cpu">
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">内存条</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="型号" id="memory">
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="价格" id="p_memory">
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">显卡</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" value="集成" placeholder="型号" id="gpu">
                        </td>
                        <td>
                        <input type="text" class="form-control" value="N/A" placeholder="价格" id="p_gpu">
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">硬盘</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="型号" id="disk">
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="价格" id="p_disk">
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">电源</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="型号" id="power">
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="价格" id="p_power">
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">机箱</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="型号" id="row">
                        </td>
                        <td>
                        <input type="text" class="form-control" placeholder="价格" id="p_row">
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">显示器</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" value="无" placeholder="型号" id="display">
                        </td>
                        <td>
                        <input type="text" class="form-control" value="N/A" placeholder="价格" id="p_display">
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">鼠标</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" value="套" placeholder="型号" id="mouse">
                        </td>
                        <td>
                        <input type="text" class="form-control" value="" placeholder="价格" id="p_mouse">
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">键盘</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" value="套" placeholder="型号" id="keyboard">
                        </td>
                        <td>
                        <input type="text" class="form-control" value="" placeholder="价格" id="p_keyboard">
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <label for="exampleInputEmail1">音响</label>
                        </td>
                        <td>
                        <input type="text" class="form-control" value="无" placeholder="型号" id="stereo">
                        </td>
                        <td>
                        <input type="text" class="form-control" value="N/A" placeholder="价格" id="p_stereo">
                        </td>
                        </tr>
                        </table>
                        选择配置类型：
                        <label class="radio-inline">
                        <input type="radio" id="pc_1" id="inlineRadio1" value="家庭影音">家庭影音
                        </label>
                        <label class="radio-inline">
                        <input type="radio" id="pc_1" id="inlineRadio2" value="游戏娱乐">游戏娱乐
                        </label>
                        <label class="radio-inline">
                        <input type="radio" id="pc_1" id="inlineRadio3" value="中端游戏">中端游戏
                        </label>
                        <label class="radio-inline">
                        <input type="radio" id="pc_1" id="inlineRadio4" value="高端发烧">高端发烧
                        </label></br>
                        选择CPU类型：
                        <label class="radio-inline">
                        <input type="radio" id="cpu_type" id="inlineRadio1" value="AMD">AMD
                        </label>
                        <label class="radio-inline">
                        <input type="radio" id="cpu_type" id="inlineRadio2" value="Intel">Intel
                        </label>
                        </form>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭</button>
                                    <button type="button" class="btn btn-primary" onclick="zj_add();"><span class="glyphicon glyphicon-ok"></span> 保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row placeholders">
                        <p>
                            当前配置数量有 <?php echo num('config'); ?> 个，

                            家庭影音：<?php echo num('config','cname','jytt'); ?> 个，

                            游戏娱乐：<?php echo num('config','cname','jxyl'); ?> 个，

                            中端游戏：<?php echo num('config','cname','zdyx'); ?> 个，

                            高端发烧：<?php echo num('config','cname','gdfs'); ?> 个
                        </p>
                    </div>
                    <h2 class="sub-header">管理配置</h2>
                    <div class="table-responsive">
                    </div>
                </div>
